package com.example.pluginmanager.service.impl;

import com.example.pluginmanager.dao.UserRoleRelationDao;
import com.example.pluginmanager.entity.UserRoleRelation;
import com.example.pluginmanager.service.UserRoleRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleRelationServiceImpl implements UserRoleRelationService {

    @Autowired
    private UserRoleRelationDao userRoleRelationDao;


    @Override
    public List<UserRoleRelation> listUserRoleRelationByUserId(String userId) {
        return userRoleRelationDao.listRoleByUserId(userId);
    }
}
